<div class="row-fluid">
	<div class="span3">
            <div class="well">      
                <?php echo CHtml::link('CREAR NUEVO NOMENCLADOR',array('nomenclador/crear'),
                        array(
                            'class'=> 'btn btn-success',                            
                            )); ?>
            </div>
            <div class="well">        
                <h5><span> Atencion!!! </span></h5>  
                    Para cargar las Prestaciones de un Nomenclador, seleccione el mismo; y a continuacion cargue una a una 
                    las prestaciones del nomenclador.
            </div>
                 
            <br> 
        </div> 
    
        <div class="span9"> 
        
            <h1> Administracion Nomencladores </h1>
         
            <!-- contenedor propio para desplegar los carteles de los procesos efectuados -->
             <div id="statusMsg">
                    <?php if(Yii::app()->user->hasFlash('success')):?>
                <div class="alert alert-success">
                    <button type="button" class="close" data-dismiss="alert">-</button>
                <?php echo Yii::app()->user->getFlash('success'); ?>
                </div>
                    <?php endif; ?>
                    <?php if(Yii::app()->user->hasFlash('error')):?>

                <div class="alert alert-error">
                    <button type="button" class="close" data-dismiss="alert">-</button>
                <?php echo Yii::app()->user->getFlash('error'); ?>
                </div>
                <?php endif; ?>
            </div>
            
            


        <?php $this->widget('zii.widgets.grid.CGridView', array(
            'id'=>'nomenclador-grid',
            'dataProvider'=>$model->search(),           
            'ajaxUpdate'=>false,
            'selectionChanged'=>'function(id){ location.href = "'.$this->createUrl('view').'&id="+$.fn.yiiGridView.getSelection(id);}',
            'itemsCssClass'=>'table table-hover table-striped table-bordered table-condensed',      
            'columns'=>array(		
                    'descripcion',
                    'fecha_inicio',
                    'fecha_fin',                  
                    'MiTipoNomenclador.descripcion',
                    array('header'=>'VIGENTE','name'=>'vigente','value'=>'($data->vigente==1)?"SI":"NO"','filter'=>''),
                  array(
                        'class'=>'CButtonColumn',
                        'template'=>'{delete},{update}',
                        'updateButtonUrl'=>'Yii::app()->createUrl(\'nomenclador/crear&id=\'. $data->id)',
                    ), ))); ?>

        </div><!--/span 9-->
</div> <!-- row-fluid -->




    
<style type="text/css">    
/***********************************************/
table th
{
        background-color:  #45ab74;
        text-align: center;
        color: #fff;
}
.table tr, .table th { text-align: center;}
.table-striped tbody tr:hover { background-color: red; }
.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
background-color: rgb(218, 230, 178);
}

.my-sticky-class{
   
    background-image: none;
    border: 2px blue solid;
    border: 1px solid #e3e3e3;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(46,12,14,0.05);
    box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
    background-color:  rgba(60, 56, 56, 0.83);
}
.gritter-item-wrapper{background: none;
 -webkit-box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(46,12,14,0.05);
    box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
    background-color: rgba(60, 56, 56, 0.83);
}
.gritter-item{background: none;
  -webkit-box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(46,12,14,0.05);
    box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
background-color:  rgba(60, 56, 56, 0.83);
}
.gritter-top{background: none;
  -webkit-box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(46,12,14,0.05);
    box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
background-color:  rgba(60, 56, 56, 0.83);
}
.gritter-close{color: pink;}
.gritter-bottom{background: none;
  -webkit-box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(46,12,14,0.05);
    box-shadow: inset 0 1px 1px rgba(46,52,14,0.05);
background-color: rgba(60, 56, 56, 0.83);
}
</style>
